<template>
    <div class="container">
        <header class="base-header">
            <slot name="baseHeader">baseHeader</slot>
        </header>
        <footer class="base-footer">
            <slot name="baseFooter">baseFooter</slot>
        </footer>
        <sidebar class="base-sidebar">
            <slot name="baseSidebar">baseSidebar</slot>
        </sidebar>
        
        <main class="base-main">
            <slot>base-main</slot>
        </main>
    </div>
</template>

<script>
export default {
    name: 'BaseLayou',

    data() {
        return {
            
        };
    },

    mounted() {
        
    },

    methods: {
        
    },
};
</script>

<style scoped>
html,body,container{
    margin: 0;
}
.base-header,.base-footer,.base-sidebar,.base-main{
    position: fixed;
    left: 0;
}
.base-header{
    z-index: 2;
    top: 0;
    width: 100%;
    height: 60px;
    background: black;
}
.base-footer{
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 60px;
    background: #eee;
}
.base-sidebar{
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 1;
    padding: 90px 30px;
    box-sizing: border-box;
    background: #eee;
}
.base-main{
    top: 0;
    width: 100%;
    height: 100%;
    padding: 90px 30px 90px 230px;
    box-sizing: border-box;
    background: orange;
}
</style>